package online.inote.graphql.modules.book.entity;

import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Data;
import lombok.EqualsAndHashCode;
import online.inote.graphql.common.base.IdEntity;
import online.inote.graphql.modules.author.entity.AuthorEntity;

/**
 * @description: TODO
 * @author XQF.Sui
 * @created 2019年4月20日 上午2:18:19
 * @version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_book")
public class BookEntity extends IdEntity<Integer> {

	private static final long serialVersionUID = 3875144756999808603L;
	
	private String name;
    private String publisher;
    private Integer authorId;

    @Transient
    private AuthorEntity author;
}